package org.example.controller;

import jakarta.annotation.Resource;
import org.example.Service.EmpService;
import org.example.util.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:EmpController
 * @Date:2025/8/5 9:39
 */
@RestController
@RequestMapping("/EmpController")
public class EmpController {

    @Resource
    private EmpService empService;

    @GetMapping("/getEmp")
    public JsonResult findAll() {
        return empService.findAll();
    }
}
